package cn.zhouchao.org.controller;

import cn.zhouchao.basic.util.PageList;
import cn.zhouchao.org.domain.DepartmentLog;
import cn.zhouchao.org.query.DepartmentLogQuery;
import cn.zhouchao.org.service.IDepartmentLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logs")
public class DepartmentLogController {
    @Autowired
    private IDepartmentLogService departmentLogService;
     //分页
    @PostMapping
    public PageList<DepartmentLog> pageQuery(@RequestBody DepartmentLogQuery DepartmentLogQuery){
        return departmentLogService.queryByPage(DepartmentLogQuery);
    }
}
